import time
import json
def store_time(hours):
    # 将小时存储到 JSON 文件中
    with open('time_data.json', 'w') as f:
        json.dump({'hours': hours}, f)
store_time(4)